package com.tanhua.dubbo.api;

import com.tanhua.model.domain.UserInfo;

import java.util.List;
import java.util.Map;

public interface UserInfoApi {

    public void save(UserInfo userInfo);

    public void update(UserInfo userInfo);

    //根据id查询
    UserInfo findById(Long id);

    /**
     * 批量查询用户
     *
     * @param userIds
     * @param userInfo
     * @return
     */
    Map<Long, UserInfo> findByIds(List<Long> userIds, UserInfo userInfo);
}